import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 使用windicss 样式
import 'virtual:windi.css'
import {router} from "./router"
// vuex
import store from "./store/index"

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
import "./permission.js"

import "nprogress/nprogress.css"

import permission from "~/directives/permission.js"
app.use(permission)

app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')